/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dinner.web.secure;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * 
 * @author Bizon
 */
@WebService()
public class AutorisingService {

	@WebMethod(operationName = "addUser")
	public void addUser(@WebParam(name = "name") String name, @WebParam(name = "password") String password, @WebParam(name = "id") long id)
			throws UnAutorizationException {
	}

	@WebMethod(operationName = "getUserList")
	public List<String> getUserList(@WebParam(name = "id") long id) throws UnAutorizationException {
		// TODO write your implementation code here:
		return null;
	}

	@WebMethod(operationName = "changePassword")
	public void changePassword(@WebParam(name = "id") long id, @WebParam(name = "user") String user, @WebParam(name = "newPass") String newPass,
			@WebParam(name = "oldPass") String oldPass) throws UnAutorizationException {
	}

    /**
     * Web service operation
     */
    @WebMethod(operationName = "changePrivilegions")
    public void changePrivilegions(@WebParam(name = "id")
    long id, @WebParam(name = "userName")
    String userName) throws UnAutorizationException {
    }
}
